<?php
defined('_JEXEC') or die('Restricted access');
?>
<div class="div_sim">
    <table border="0" cellpadding="0" cellspacing="0">
        <?php
        $t = 0;
        foreach($list as $pref => $review)
        {
            $link = JRoute::_( 'index.php?option=com_sim&pref='.trim($pref));
            ?>
        <?php if($t==0):?>
        <tr>
        <?php endif;?>
            <td width="137">
                <a href="<?php echo $link; ?>" class="sim_prefix"><?php echo $review;?></a>
            </td>
        <?php
        $t++;
        if($t==4):
            $t=0;
            ?>
            
            </tr>
        <?php endif;?>
        <?php
    }
    ?>
    </table>
</div>

